#include <bits/stdc++.h>
using namespace std;
int main()
{
    double a, b;
    int c;
    cin >> a >> b >> c;
    if (b)
        a *= 1.26;
    else
        a *= 2.455;
    printf("%.2f ", a);
    if (a > c)
        cout << "T_T";
    else
        cout << "^_^";
    return 0;
}
